package name.matthewgreet.example2.common; import java.io.Serializable; import java.util.List; /** * <P>Strategy for finding a sorted list. Items are usually Data Transfer Objects describing a record.</P> * * <DL> * <DT>T</DT><DD>Record type returned by this finder.</DD> * </DL> */ @FunctionalInterface public interface ListFinder<T extends Serializable> extends Serializable { /** * Returns list, sorted if needed, of Data Transfer Objects. Null may be returned if nothing found. */ public List<T> getList() throws Exception; }